<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>这是我的OJ系统</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        html,
        body {
            width: 100%;
            height: 100%;
        }
        .container .navbar
        {
            width: 100%;
            height: 50px; 
            background-color: rgb(15, 15, 15);

            overflow: hidden;
        }
        .container .navbar .login{
            float:right;
        }
        .container .navbar a
        {
            display: inline-block;
            width: 80px;
            /* 设置字体颜色 */
            color: aliceblue;
            font-size: large;
            line-height: 50px;
            text-decoration: none;
            text-align: center;
        }
        .container .navbar a:hover
        {
            background-color: rgb(12, 182, 126);
        }
        .container .content {
            width: 800px;
            /* background-color: aquamarine; */
            /*整体居中*/
            margin: 0px auto;
            text-align: center;
            /* 设置上外边距 */
            margin-top :200px;
        }

        .container .content .font_ {
            /* 设置标签为块级元素 */
            display: block;
            margin-top: 20px;
            text-decoration: none;

        }
    </style>
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="#">首页</a>
            <a href="/all_questions">题库</a>
            <a href="#">竞赛</a>
            <a href="#">讨论</a>
            <a href="#">求职</a>
            <a href="#" class="login">登录</a>
        </div>
        <div class="content">
            <h1 class="font_">欢迎来到我的OnlineJudge平台</h1>
            <a href="/all_questions" class="font_">点击此处开始答题！</a>
        </div>
    </div>
</body>

</html>